<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>top</title>
<link href="<%=path %>/css/system/core.css" rel="stylesheet" type="text/css">
<script src="<%=path %>/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript"> 
	var styleID = 1;
	//清除所有的二级菜单，并将当前菜单的的子菜单设置为显示状态
	function changeMenu(obj){
		var menuArray = $("#menu").find("dd");
		menuArray.each(function(){
		//隐藏所有的父菜单
		  $(this).attr("class","item");
		  var id = $(this).attr("id");
		//同时隐藏所有的子菜单
		  $("#"+id+"_two").attr("class","item_children");
		});
		//将当前鼠标焦点处的菜单和该菜单的子菜单显示
		obj.className= "itemsel";
		$("#"+obj.id+"_two").attr("class","itemsel_children");
	}
	
	function mouseOver(obj){
		if(obj.id==styleID)
		return;
		changeMenu(obj);
	}
	
	function mouseOut(obj){
		if(obj.id==styleID)
		return;
		changeMenu(obj);
		styleID = obj.id;
	}
	
	function changeUrl(url){
	parent.mainFrame.location = url;
	}
	
	function view(){
		var url = "<%=path %>/system/dreamMaker/init.action";
		var param = "height=608,width=1024,top=100, left=150, toolbar=yes, menubar=yes, scrollbars=yes, resizable=yes,location=yes, status=yes";
		window.open(url,"",param);
	}
</script>
</head>
<body >
<div class="left topbody">
	<div class="logo"><img src="<%=path %>/images/system/logo.gif"/></div>
	<div class="nav">
		<div class="loginInfo position_right"><span>您好：欢迎[管理员]</span><span><a href="#">修改密码</a></span><span><a href="#">注销</a></span></dl> </div>
		<div class="navList position_right">
		<dl id="menu">
			<dd class="itemsel" id="1" onmouseover="mouseOver(this);" onmouseout="mouseOut(this);">
			<a href="#">Top区</a>
			</dd>
			<dd class="item" id="2" name="center" onmouseover="mouseOver(this);" onmouseout="mouseOut(this);">
			<a href="#">Center区</a>
			</dd>
			<dd class="item" id="3" onmouseover="mouseOver(this);" onmouseout="mouseOut(this);">
			<a href="#">Bottom区</a>
			</dd>
			<dd class="item" id="6" name="modules" onmouseover="mouseOver(this);" onmouseout="mouseOut(this);" onclick="view()">
			<a href="#">系统管理</a>
			</dd>
		</dl>
		<div class="clearR"></div>
		<div class="nav_children">
		<dl id="1_two" class="itemsel_children">
			<dd onclick="changeUrl('<%=path %>/system/fastoperat/init.action')"><a href="#">快速操作</a></dd>
			<dd onclick="changeUrl('<%=path %>/system/nav/init.action')"><a href="#">导航栏</a></dd>
		</dl>
		<dl id="2_two" class="item_children">
			<dd onclick="changeUrl('<%=path %>/system/modules/init.action')" ><a href="#">模块管理</a></dd>
			<dd onclick="changeUrl('<%=path %>/system/article/init.action')" ><a href="#">内容管理</a></dd>
			<dd onclick="changeUrl('<%=path %>/system/product/init.action')" ><a href="#">产品管理</a></dd>
		</dl>
		<dl id="3_two" class="item_children">
			<dd><a href="#">联系我们</a></dd><dd><a href="#">版权所有</a></dd>
		</dl>
		<dl id="6_two" class="item_children">
			<dd onclick="changeUrl('<%=path %>/system/codeGenerate/init.action')"><a href="#">密码修改</a></dd>
		</dl>
		<div>
	</div>
  </div>
<div>
</body>
</html>